package org.example.diet_compass.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.example.diet_compass.domain.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.diet_compass.dto.TopCategoryItem;

import java.util.List;
import java.util.Map;

/**
* @author 86135
* @description 针对表【goods(商品项)】的数据库操作Service
* @createDate 2025-02-27 15:21:30
*/
public interface GoodsService extends IService<Goods> {

    List<Goods> getRecommendsOrderByAVGScore();

    IPage<Goods> getGoodsByPageAndKeyword(int currentPage, int pageSize);

    Goods getGoodById(String id);

    void updateScore( String goodsId);

    List<TopCategoryItem> getGoodsByCategory();

    Double getGoodPriceById(String goodId);

    void insertGoodsBatch(List<Map<String,Object>> mapList);
}
